Using np.diagflat only along second dimension

visit shbcf.ru